import _fetch from '@/api/request'

function getPhoneCode (data) {
  return _fetch({
    url: '/sendsms',
    method: 'post',
    data
  })
}
function toRegister (data) {
  return _fetch({
    url: '/register',
    method: 'post',
    data
  })
}

export { getPhoneCode }
export { toRegister }
